import { createApp } from 'vue'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import locale from 'element-plus/lib/locale/lang/zh-cn'
import "@/utils/common.css"
import App from './App.vue'
import router from './router'
import store from './store'

import MyTable from './components/table/index'

// 路由权限控制
import './permission'

//判断不同环境
if(process.env.VUE_APP_ENV === 'production'){
  console.log("生产");
}else if(process.env.VUE_APP_ENV === 'test'){
  console.log("测试");
}else if(process.env.VUE_APP_ENV === 'development'){
  console.log("开发");
}


const app = createApp(App);

app.use(store);
app.use(router);
app.use(ElementPlus,{locale});
app.use(MyTable);
app.mount("#app");
